package org.example.myleet.p676;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        MagicDictionary dictionary = new MagicDictionary();
        dictionary.buildDict(new String[]{"hello", "hallo", "leetcode", "gjj", "judge"});
//        Assert.isTrue(dictionary.search("hello"));
//        Assert.isTrue(dictionary.search("hhllo"));
//        Assert.isTrue(!dictionary.search("hell"));
//        Assert.isTrue(!dictionary.search("gjj"));
//        Assert.isTrue(!dictionary.search("leetcoded"));
        Assert.isTrue(!dictionary.search("judge"));
    }
}
